package work.huangxin.share.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;
import work.huangxin.share.domain.schedule.ClassSchedule;
import work.huangxin.share.domain.schedule.ClassSecheduleVO;

import java.util.List;

/**
 * @author 季台星
 * @Date 2023 04 18 18 02
 */
@Mapper
public interface ClassScheduleMapper extends BaseMapper<ClassSchedule> {
    List<ClassSchedule> selectByClazzName( @Param("clazzName") String clazzName);
    List<ClassSecheduleVO> selectByClazzNameWithNote( @Param("userId") Long userId,@Param("clazzName") String clazzName);

    int selectClazzName(@Param("clazzName") String s);

    Long insertWithUserId(ClassSecheduleVO classSecheduleVO);
}
